﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="KhuyenMaiTheoLoai1.ascx.cs" Inherits="FastDeal.Control.KhuyenMaiTheoLoai1" %>
<link href="../CSS/style1.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    .style3
    {
        width: 147px;
    }
    .style4
    {
        height: 25px;
        width: 119px;
    }
    .style5
    {
        width: 119px;
    }
    .style6
    {
        width: 360px;
    }
    .style8
    {
        height: 25px;
        width: 88px;
    }
    .style13
    {
        height: 25px;
        width: 168px;
    }
    .style14
    {
        width: 168px;
       
    }
    .style16
    {
        width: 38px;
    }
</style>


<asp:Panel ID="Panel1" runat="server">

    <br />
    <div align="center">
        <asp:DataList ID="DTlist" runat="server" RepeatColumns="2" 
    RepeatDirection="Horizontal" 
    onselectedindexchanged="DTlist_SelectedIndexChanged" 
    onitemcommand="DTlist_ItemCommand">
    <ItemTemplate>
        <asp:Image ID="image_ChayHang" runat="server" ImageUrl="~/HinhAnh/chayhang.png" 
            CssClass="chayhang" />

        <table cellpadding="0" cellspacing="0" id="khung" class="style6" 
            bgcolor="#006666" 
            style="background-image: url('../HinhAnh/main_tile.jpg'); position: relative;">
                    <tr>
                        <td align="center" class="style3" colspan="4">
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("TenKhuyenMai") %>' 
                                Font-Size="Large" ForeColor="Blue" CssClass="lbkhuyenmai"></asp:Label>
                        </td>
                    </tr>
                    <tr align="center">
                        <td colspan="4" class="image1">
                            <%--<asp:Image ID="Image2" runat="server" Height="90px" 
                                ImageUrl='<%# Bind("DuongDan") %>' Width="150px" DescriptionUrl='<%# "~/ChiTietKhuyenMai.aspx?ID="+Eval("MaKhuyenMai") %>' />
                         <asp:HyperLink ID="lbThongTin" runat="server" 
                                NavigateUrl='<%# "~/ChiTietKhuyenMai.aspx?ID="+Eval("MaKhuyenMai") %>' 
                                Text='<%# Bind("MaKhuyenMai") %>'>
                                
                          </asp:HyperLink>--%>
                           &nbsp;&nbsp; 
                            <asp:Image ID="hinhdatalist" runat="server"  Width="250px" Height="200px"
                                ImageUrl='<%# Bind("DuongDan") %>' CssClass="hinhdatalist" />
                                                           &nbsp;
                        <%--   <asp:Button ID="Button2"
                                    runat="server" Text="Xem" Height="34px" 
                                Width="76px" CommandArgument='<%# Eval("MaKhuyenMai") %>' 
                                onclick="btnXem_Click" BackColor="#33CC33" Font-Bold="True" 
                                Font-Size="Large" ForeColor="White" CommandName="Xem"/>--%>
                            <asp:HyperLink ID="HyperLink1" runat="server" BackColor="#0066FF" Font-Bold="True" 
                                Font-Size="Large" ForeColor="White" Height="35px" 
                                NavigateUrl='<%# "~/ChiTietKhuyenMai.aspx?ID=" + Eval("MaKhuyenMai") %>' 
                                Width="75px" CssClass="gach1">Xem</asp:HyperLink>    
                        </td>
                    </tr>
                     <tr>
                         <td class="style14">
                             &nbsp;&nbsp;Giá Gốc:&nbsp;
                         </td>
                        <td class="gach">
                         <asp:Label  runat="server" ID ="lable1" Text='<%# Bind("GiaGoc") %>'></asp:Label>
                            &nbsp;<br />
                        </td>
                        <td class="style16">
                           <asp:Label ID="Label1" runat="server" Text="VND" Font-Bold="True" 
                                Font-Size="Smaller" ForeColor="#9999FF"></asp:Label>
                        </td>
                        <td align ="center" class="style5" >
                            Đã Mua
                        </td>
                    </tr>
                     <tr>
                        <td class="style13">
                            &nbsp;&nbsp;Giá Khuyến Mãi: &nbsp; 
                        </td>
                        <td class="style8">                
                            <asp:Label ID="Label2" runat="server" 
                                Text='<%# Bind("GiaKhuyenMai") %>' ForeColor="Red" EnableViewState="False" Font-Bold="True"></asp:Label>
                        </td>
                        <td class="style16">
                            <asp:Label ID="Label5" runat="server" Text="VND" Font-Bold="True" 
                                Font-Size="Smaller" ForeColor="#9999FF"></asp:Label>
                        </td>
                        <td align ="center" class="style4">
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("TongSoNguoiMua") %>' 
                                Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                </table>
        <asp:Label ID="lbThoiGianBatDau" runat="server" 
            Text='<%# Bind("ThoiGianBatDau") %>' Visible="false"></asp:Label>
        <br />
        <asp:Label ID="lbThoiGianKetThuc" runat="server" 
            Text='<%# Bind("ThoiGianKetThuc") %>' Visible="false"></asp:Label>
        <br />
        <asp:Label ID="lbSoLuongToiDa" runat="server" 
            Text='<%# Bind("SoLuongToiDa") %>' Visible="false"></asp:Label>
        <br />
        <asp:Label ID="lbSoLuongNguoiMua" runat="server" 
            Text='<%# Bind("TongSoNguoiMua") %>' Visible="false"></asp:Label>
        <br />
    </ItemTemplate>
</asp:DataList>
    </div>

</asp:Panel>
